package com.med.service;


import com.med.common.ResponseDTO;
import com.med.entity.DepartmentDO;
import com.med.vo.AddDepartmentVO;
import com.med.vo.QueryDepartmentVO;
import com.med.vo.UpdateDepartmentVO;

import java.util.List;

/**
 * @BelongsProject: Internet-based-healthcare
 * @BelongsPackage: com.med.service
 * @Author: 小龚
 * @CreateTime: 2025-08-14 09:02
 * @Description: TODO
 * @Version: 1.0
 */

public interface DepartmentService {

    // 查询科室
    ResponseDTO getDepartment(QueryDepartmentVO vo);

    // 查询科室(redis预热、同步Redis、MySQL数据)
    List<DepartmentDO> getDepartmentByPreheat();

    // 更改科室状态
    ResponseDTO updateStatus(Integer departmentId);

    // 获取所有父级科室
    ResponseDTO getParentDepartment();

    // 新增科室
    ResponseDTO addDepartment(AddDepartmentVO vo);

    // 修改科室信息
    ResponseDTO updateDepartmentInfo(UpdateDepartmentVO vo);

    // 删除科室
    ResponseDTO deleteDepartment(Integer departmentId);
}
